from django.conf.urls.defaults import *

urlpatterns = patterns('ytcommunity.blog.view',
    (r'^$', 'blog.list', {'template':'blog/index.html'}),
    (r'^all/$', 'blog.all', {'template':'blog/index.html'}),
    (r'^my/$', 'blog.my', {'template':'blog/index.html'}),
    (r'^add/$', 'blog.add', {'template':'blog/add.html'}),
    (r'^(?P<id>\d+)/$', 'blog.display', {'template':'blog/display.html'}),
    (r'^edit/(?P<id>\d+)/$', 'blog.edit', {'template':'blog/edit.html'}),
    (r'^delete/(?P<id>\d+)/$', 'blog.delete'),
    (r'^promote/(?P<id>\d+)/$', 'blog.promote'),
    (r'^comment/(?P<id>\d+)/$', 'comment.add'),                    
    (r'^comment/delete/(?P<id>\d+)/$', 'comment.delete'),

    (r'^api/tags/$', 'blog.tags'),
    (r'^api/comments/$', 'comment.recent_comments'),
                        
    (r'^feed/$', 'blog.feed'),                    
)
